﻿using Clirelmgt.Manager;
using Clirelmgt.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;
using System.Xml;


namespace Clirelmgt.COnsole
{
    class Program
    {
        static void Main(string[] args)
        {
            dynamic rec = new Record("LEAD");
            rec.MyBool = 23;

            if (rec.MyBool - 23 == 0)
            {
                string str = rec.MyBool;
            }

            //string iconXml = "";
            //using (StreamReader sr = File.OpenText(@"D:\SiteProject\CodeplexTfs\FlexiMax\Clirelmgt\Clirelmgt.COnsole\Metasample\Icon.xml"))
            //{
            //    iconXml = sr.ReadToEnd();
            //}

            //XmlDocument doc = new XmlDocument();
            //doc.LoadXml(iconXml);
            //XmlNodeList nodeList = doc.GetElementsByTagName("span");
            //int i = 0, j = 0;
            //foreach (XmlElement node in nodeList)
            //{
            //    node.SetAttribute("title", string.Format("&#xe0{0}{1};", i.ToString("x"), j.ToString("x")));
            //    node.SetAttribute("data-icon", string.Format("&#xe0{0}{1};", i.ToString("x"), j.ToString("x")));
            //    j++;
            //    if (j == 15)
            //    {
            //        i++;
            //        j = 0;
            //    }

            //    //node.Attributes.Append(attribute);
            //}
            ////ul ulobj = Utility.DeserializeString<ul>(iconXml) as ul;
            ////foreach (var item in ulobj.li)
            ////{
            ////    item.span.title = item.span.dataicon;
            ////}

            ////iconXml = Utility.SerializeObject(ulobj);
            //string result = doc.InnerXml.Replace("&amp;", "&");
        }
    }
}
